<?php

namespace App;

use Illuminate\Database\Eloquent\Relations\Pivot;

class Activityable extends Pivot {

	protected $table = "activityables";

	public function orders() {
		return $this->hasMany(Order::class, 'map_id');
	}

	public function activity() {
		return $this->belongsTo(Activity::class);
	}

	public function type() {
		return $this->belongsTo(Type::class);
	}
}
